make a virtue of necessity

Translations
превратить необходимость в добродетель
He made a virtue of necessity by turning the extra work into an opportunity to learn.
Он превратил необходимость в добродетель, превратив дополнительную работу в возможность учиться.
Definitions
To derive a positive quality or benefit from a situation that is otherwise undesirable or unavoidable.